package com.gscitysfy.cus.drain.modules.warning.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhangqiang
 * @since 2022-10-23 17:38:32
 */
@Getter
@Setter
@TableName("drain_system_command_lead")
public class DrainSystemCommandLead implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 指挥体系id
     */
    @TableId
    private Long cmKid;

    /**
     * 指挥体系类别
     */
    private String systemType;

    /**
     * 指挥体系编码
     */
    private String systemCode;

    /**
     * 指挥体系名称
     */
    private String systemName;

    /**
     * 生效日期
     */
    private LocalDateTime effectiveDate;

    /**
     * 是否启用（0不启用 1启用）
     */
    private String isEnable;

    /**
     * 体系图片id
     */
    private Long systemFileId;

    @TableField(value = "cm_creator",fill = FieldFill.INSERT)
    private String cmCreator;
    @TableField(value = "cm_modifier",fill = FieldFill.UPDATE)
    private String cmModifier;

    private String cmOrgflag;

    private String cmRegflag;

    private Long cmTenantid;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "cm_addtime",fill = FieldFill.INSERT)
    private Date cmAddtime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "cm_uptime", fill = FieldFill.UPDATE)
    private Date cmUptime;

    private Long cmVersion;
    private Boolean cmUsable;

    @TableField(exist = false)
    private String  cmFileName;
    @TableField(exist = false)
    private String cmFilePreviewUrl;
}
